Optimal. Leaf size=207 \[ -\frac {2 (A-5 B) \sin (c+d x) \sqrt {\cos (c+d x)}}{15 d \sqrt {a \sec (c+d x)+a}}+\frac {2 (13 A-5 B) \sin (c+d x)}{15 d \sqrt {\cos (c+d x)} \sqrt {a \sec (c+d x)+a}}-\frac {\sqrt {2} (A-B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \tanh ^{-1}\left (\frac {\sqrt {a} \sin (c+d x) \sqrt {\sec (c+d x)}}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{\sqrt {a} d}+\frac {2 A \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d \sqrt {a \sec (c+d x)+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.63, antiderivative size = 207, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {2955, 4022, 4013, 3808, 206} \[ -\frac {2 (A-5 B) \sin (c+d x) \sqrt {\cos (c+d x)}}{15 d \sqrt {a \sec (c+d x)+a}}+\frac {2 (13 A-5 B) \sin (c+d x)}{15 d \sqrt {\cos (c+d x)} \sqrt {a \sec (c+d x)+a}}-\frac {\sqrt {2} (A-B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \tanh ^{-1}\left (\frac {\sqrt {a} \sin (c+d x) \sqrt {\sec (c+d x)}}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{\sqrt {a} d}+\frac {2 A \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d \sqrt {a \sec (c+d x)+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 2955
Rule 3808
Rule 4013
Rule 4022
Rubi steps
\begin {align*} \int \frac {\cos ^{\frac {5}{2}}(c+d x) (A+B \sec (c+d x))}{\sqrt {a+a \sec (c+d x)}} \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {A+B \sec (c+d x)}{\sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx\\ &=\frac {2 A \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \sec (c+d x)}}+\frac {\left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {-\frac {1}{2} a (A-5 B)+2 a A \sec (c+d x)}{\sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx}{5 a}\\ &=-\frac {2 (A-5 B) \sqrt {\cos (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \sec (c+d x)}}+\frac {2 A \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \sec (c+d x)}}+\frac {\left (4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\frac {1}{4} a^2 (13 A-5 B)-\frac {1}{2} a^2 (A-5 B) \sec (c+d x)}{\sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}} \, dx}{15 a^2}\\ &=\frac {2 (13 A-5 B) \sin (c+d x)}{15 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}-\frac {2 (A-5 B) \sqrt {\cos (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \sec (c+d x)}}+\frac {2 A \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \sec (c+d x)}}-\left ((A-B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {a+a \sec (c+d x)}} \, dx\\ &=\frac {2 (13 A-5 B) \sin (c+d x)}{15 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}-\frac {2 (A-5 B) \sqrt {\cos (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \sec (c+d x)}}+\frac {2 A \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \sec (c+d x)}}+\frac {\left (2 (A-B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \operatorname {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,-\frac {a \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d}\\ &=-\frac {\sqrt {2} (A-B) \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{\sqrt {a} d}+\frac {2 (13 A-5 B) \sin (c+d x)}{15 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}-\frac {2 (A-5 B) \sqrt {\cos (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \sec (c+d x)}}+\frac {2 A \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.80, size = 154, normalized size = 0.74 \[ \frac {\sin (c+d x) \cos ^{\frac {3}{2}}(c+d x) \left (2 \sqrt {1-\sec (c+d x)} \left ((13 A-5 B) \sec ^2(c+d x)-(A-5 B) \sec (c+d x)+3 A\right )+15 \sqrt {2} (A-B) \sec ^{\frac {5}{2}}(c+d x) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {\sec (c+d x)}}{\sqrt {1-\sec (c+d x)}}\right )\right )}{15 d \sqrt {1-\sec (c+d x)} \sqrt {a (\sec (c+d x)+1)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.47, size = 368, normalized size = 1.78 \[ \left [\frac {4 \, {\left (3 \, A \cos \left (d x + c\right )^{2} - {\left (A - 5 \, B\right )} \cos \left (d x + c\right ) + 13 \, A - 5 \, B\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - \frac {15 \, \sqrt {2} {\left ({\left (A - B\right )} a \cos \left (d x + c\right ) + {\left (A - B\right )} a\right )} \log \left (-\frac {\cos \left (d x + c\right )^{2} - \frac {2 \, \sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{\sqrt {a}} - 2 \, \cos \left (d x + c\right ) - 3}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right )}{\sqrt {a}}}{30 \, {\left (a d \cos \left (d x + c\right ) + a d\right )}}, \frac {15 \, \sqrt {2} {\left ({\left (A - B\right )} a \cos \left (d x + c\right ) + {\left (A - B\right )} a\right )} \sqrt {-\frac {1}{a}} \arctan \left (\frac {\sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {-\frac {1}{a}} \sqrt {\cos \left (d x + c\right )}}{\sin \left (d x + c\right )}\right ) + 2 \, {\left (3 \, A \cos \left (d x + c\right )^{2} - {\left (A - 5 \, B\right )} \cos \left (d x + c\right ) + 13 \, A - 5 \, B\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{15 \, {\left (a d \cos \left (d x + c\right ) + a d\right )}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \sec \left (d x + c\right ) + A\right )} \cos \left (d x + c\right )^{\frac {5}{2}}}{\sqrt {a \sec \left (d x + c\right ) + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 2.35, size = 195, normalized size = 0.94 \[ \frac {\left (\sqrt {\cos }\left (d x +c \right )\right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (15 \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, A \sin \left (d x +c \right )-6 A \left (\cos ^{3}\left (d x +c \right )\right )-15 \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, B \sin \left (d x +c \right )+8 A \left (\cos ^{2}\left (d x +c \right )\right )-10 B \left (\cos ^{2}\left (d x +c \right )\right )-28 A \cos \left (d x +c \right )+20 B \cos \left (d x +c \right )+26 A -10 B \right )}{15 d a \sin \left (d x +c \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.75, size = 581, normalized size = 2.81 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\cos \left (c+d\,x\right )}^{5/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}\right )}{\sqrt {a+\frac {a}{\cos \left (c+d\,x\right )}}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________